public class demo {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{2,3,4}};
        //遍历二维数组
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j <3 ; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
    }
}
